package cn.good.yan.model.service;

import cn.good.yan.model.entity.Admin;
import cn.good.yan.model.entity.Re;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * User 实体 Service层
 */
@SuppressWarnings("all")
public interface AdminService extends IService<Admin> {


    // 登录之后返回 token
    Re login(String username, String password, String code, HttpServletRequest request);

    // 根据用户名获取用户
    Admin getAdminByUserName(String nickname);

}
